#include "SurfaceContainer.h"

SurfaceContainer::SurfaceContainer(SDL_Surface* surface, std::string id, int x, int y, int positionType)
{
	this->surface = surface;
	this->id = id;
	this->x = x;
	this->y = y;
	this->dirty = false;
	this->positionType = positionType;
}

SurfaceContainer::~SurfaceContainer(void)
{
	SDL_FreeSurface(this->surface);
}

SDL_Surface* SurfaceContainer::getSurface() {
	return this->surface;
}

std::string SurfaceContainer::getId() {
	return this->id;
}

bool SurfaceContainer::getDirty() {
	return this->dirty;
}

void SurfaceContainer::setDirty(bool dirty) {
	this->dirty = dirty;
}

int SurfaceContainer::getX() {
	return this->x;
}

int SurfaceContainer::getY() {
	return this->y;
}

void SurfaceContainer::setX(int x) {
	this->x = x;
}

void SurfaceContainer::setY(int y) {
	this->y = y;
}

int SurfaceContainer::getPositionType() {
	return this->positionType;
}

void SurfaceContainer::setPositionType(int positionType) {
	this->positionType = positionType;
}

